<?php //var_dump(str_replace('/shop/','/mobile/',$output['show_page']));exit;
?>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>搜索结果</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
<!--    <link rel="stylesheet" type="text/css" href="--><?php //echo MOBILE_RESOURCE_SITE_URL; ?><!--/css/base.css" />-->
    <!--标准mui.css-->
    <link rel="stylesheet" href="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/css/mui.min.css">
    <!--App自定义的css-->
    <link rel="stylesheet" type="text/css" href="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/css/app.css" />
    <!--App自定义的css-->
    <link rel="stylesheet" type="text/css" href="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/css/zhaojinyin_index.css" />
    <link href="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <script src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/js/mui.min.js"></script>
    <script type="text/javascript" charset="utf-8">
        mui.init({
            swipeBack: true //启用右滑关闭功能
        });
    </script>
    <style>
        .title {
            margin: 20px 15px 10px;
            color: #6d6d72;
            font-size: 15px;
        }

        .div_lable label {
            width: 30%;
            padding: 0 20px;
        }
    </style>
</head>

<body style="padding-bottom: 150px;">

<div class="mui-bar mui-bar-nav" style="height: 45px; ">
    <a class="mui-action-back1 mui-icon mui-icon-left-nav mui-pull-left" onClick="javascript:history.back(-1);" style="margin-left: 0px;float: left;"></a>
    <!--
        时间：2016-03-24
        描述：右边按钮
    -->
<!--    <a class="mui-icon mui-pull-right right-btn_fenlei"></a>-->
    <!--
        时间：2016-03-24
        描述：中间搜索放大镜
    -->
    <a class="fandajin-btn" style="float:right;margin-left: 10px;"></a>
    <input style="padding-left: 32px; width: 77%; margin-left: 0px; float: left;" type="text" id="keyword" placeholder="在此输入内容..." />
    <h1 class="mui-title" style=""></h1>
</div>

<div class="mui-content mui-row mui-fullscreen">

    <div style="background: #FFFFFF;padding: 10px; text-align: center;" class="div_lable">
<!--        <label class="bg_lable">销量<img src="--><?php //echo MOBILE_RESOURCE_SITE_URL; ?><!--/images/18.png" style="width: 12px;margin-left: 5px; margin-bottom:-2px ;"></label>-->
        <label><?php if($_GET['keyword']){echo $_GET['keyword'];}elseif($_GET['store_id']){echo $output['goods_list'][0]['store_name'];}?></label>
<!--        <label>新品</label>-->
    </div>

    <ul class="pinpai_list" style="padding-top:5px ;">
        <?php  foreach ($output['goods_list'] as $g) {?>
        <li style="margin-top: 6px;">
            <div style="border: 1px solid #dddddd; background: #FFFFFF; width: 96%; float: left;">
                <a href="/mobile/index.php?act=goods&op=goods_body&goods_id=<?php echo $g['goods_id'];?>"><img style="height:180px;width: 100%;" src="/data/upload/shop/store/goods/<?php echo $g['store_id'];?>/<?php echo $g['goods_image'];?>"></a>
                <p style="float: left;padding-left: 5px;white-space: nowrap;text-overflow: ellipsis; overflow: hidden;width: 100%;"><?php echo $g['goods_name'];?></p>
                <p style="float: left; padding-left: 5px; width: 100%;">
                    <label class="color_red">￥<?php echo $g['goods_price'];?></label>
                    <label style="float: right;padding-right: 5%">
                        </label>
                </p>
            </div>
        </li>
        <?php }?>
    </ul>
    <div class="pagination"><?php echo str_replace('/shop/','/mobile/',$output['show_page']); ?> </div>
</div>
<script src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/js/jquery.js"></script>
<script language="JavaScript">
    $(".fandajin-btn").click(function(){
        var keyword = encodeURIComponent($('#keyword').val());
        window.location.href = 'index.php?act=search&op=index&keyword='+keyword;
    });
</script>
</body>
</html>